import scrapy

class FundHoldingItem(scrapy.Item):
    """基金持股数据"""
    org_name_or_fund_name = scrapy.Field()
    symbol = scrapy.Field()
    report_date = scrapy.Field()
    held_num = scrapy.Field()
    to_float_shares_ratio = scrapy.Field()


class KlineItem(scrapy.Item):
    """K线数据Item"""
    symbol = scrapy.Field()
    trade_date = scrapy.Field()
    timestamp = scrapy.Field()
    volume = scrapy.Field()
    open_price = scrapy.Field()
    close_price = scrapy.Field()
    high_price = scrapy.Field()
    low_price = scrapy.Field()
    price_change = scrapy.Field()
    percent_change = scrapy.Field()
    turnover_rate = scrapy.Field()
    amount = scrapy.Field()
    macd_dea = scrapy.Field()
    macd_dif = scrapy.Field()
    macd = scrapy.Field()
    boll_upper = scrapy.Field()
    boll_lower = scrapy.Field()
    ma20 = scrapy.Field()
    kdj_k = scrapy.Field()
    kdj_d = scrapy.Field()
    kdj_j = scrapy.Field()
    pe_ttm = scrapy.Field()
    pb = scrapy.Field()
    ps = scrapy.Field()
    pcf = scrapy.Field()
    market_cap = scrapy.Field()